package com.ruoyi.ring.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ring.mapper.RingUserSettingMapper;
import com.ruoyi.ring.domain.RingUserSetting;
import com.ruoyi.ring.service.IRingUserSettingService;

/**
 * 用户设置Service业务层处理
 * 
 * @author liuwp
 * @date 2025-09-02
 */
@Service
public class RingUserSettingServiceImpl implements IRingUserSettingService 
{
    @Autowired
    private RingUserSettingMapper ringUserSettingMapper;

    /**
     * 查询用户设置
     * 
     * @param id 用户设置主键
     * @return 用户设置
     */
    @Override
    public RingUserSetting selectRingUserSettingById(Long id)
    {
        return ringUserSettingMapper.selectRingUserSettingById(id);
    }

    /**
     * 查询用户设置列表
     * 
     * @param ringUserSetting 用户设置
     * @return 用户设置
     */
    @Override
    public List<RingUserSetting> selectRingUserSettingList(RingUserSetting ringUserSetting)
    {
        return ringUserSettingMapper.selectRingUserSettingList(ringUserSetting);
    }

    /**
     * 根据业务主键查询一条记录：用户设置
     *
     * @param ringUserSetting 用户设置
     * @return 用户设置
     */
    @Override
    public RingUserSetting selectOneRingUserSetting(RingUserSetting ringUserSetting)
    {
        return ringUserSettingMapper.selectOneRingUserSetting(ringUserSetting);
    }

    /**
     * 新增用户设置
     * 
     * @param ringUserSetting 用户设置
     * @return 结果
     */
    @Override
    public int insertRingUserSetting(RingUserSetting ringUserSetting)
    {
        return ringUserSettingMapper.insertRingUserSetting(ringUserSetting);
    }

    /**
     * 修改用户设置
     * 
     * @param ringUserSetting 用户设置
     * @return 结果
     */
    @Override
    public int updateRingUserSetting(RingUserSetting ringUserSetting)
    {
        return ringUserSettingMapper.updateRingUserSetting(ringUserSetting);
    }

    @Override
    public int updateRingUserSettingCondition(RingUserSetting ringUserSetting, RingUserSetting ringUserSettingCondition)
    {
        return ringUserSettingMapper.updateRingUserSettingCondition(ringUserSetting, ringUserSettingCondition);
    }

    /**
     * 批量删除用户设置
     * 
     * @param ids 需要删除的用户设置主键
     * @return 结果
     */
    @Override
    public int deleteRingUserSettingByIds(Long[] ids)
    {
        return ringUserSettingMapper.deleteRingUserSettingByIds(ids);
    }

    /**
     * 删除用户设置信息
     * 
     * @param id 用户设置主键
     * @return 结果
     */
    @Override
    public int deleteRingUserSettingById(Long id)
    {
        return ringUserSettingMapper.deleteRingUserSettingById(id);
    }

    /**
     * 条件删除用户设置
     *
     * @param ringUserSetting 用户设置
     * @return 结果
     */
    @Override
    public int deleteRingUserSettingByCondition(RingUserSetting ringUserSetting)
    {
        return ringUserSettingMapper.deleteRingUserSettingByCondition(ringUserSetting);
    }

}
